package com.basic.business.smb.domain;

import com.basic.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import cn.idev.excel.annotation.ExcelProperty;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import com.basic.common.utils.StringUtils;
import com.basic.common.utils.uuid.ULID;

/**
 * 业务-SMB管理对象 t_smb_mgmt
 * 
 * @author zhaoxy_jn@163.com
 * @date 2025-04-07
 */
@Getter
@Setter
@ExcelIgnoreUnannotated
public class TSmbMgmt extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** smb共享名称 */
    @ExcelProperty(value = "smb共享名称")
    private String smbName;

    /** smb共享路径 */
    @ExcelProperty(value = "smb共享路径")
    private String smbPath;

    @ExcelProperty(value = "用户名")
    private String userName;

    @ExcelProperty(value = "密码")
    private String password;

    /** 状态 正常：NORMAL 删除：DELETED */
    @ExcelProperty(value = "状态")
    private String smbStatus;

    /** 挂载状态 已挂载：MOUNT 未挂载：UNMOUNT*/
    @ExcelProperty(value = "挂载状态")
    private String mountStatus;

    public void setId(String id) {
        this.id = StringUtils.isNotEmpty(id) ? id : ULID.getId();
    }
}
